export default {
  // Global page headers: https://go.nuxtjs.dev/config-head

  server: {
    port: 5013, // default: 3000
    host: "0.0.0.0", // default: localhost,
  },
  head: {
    title: "江苏铭创",
    htmlAttrs: {
      lang: "en",
    },
    meta: [
      { charset: "utf-8" },
      { name: "viewport", content: "width=device-width, initial-scale=1" },
      { hid: "description", name: "description", content: "" },
      { name: "format-detection", content: "telephone=no" },
    ],
    link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }],
    script: [
      {
        src: "http://api.map.baidu.com/getscript?v=2.0&ak=2I5kOGIltkEAIPmxU7XWc1CFgBUzRK73",
        async: true,
        defer: true,
      },
    ],
  },

  // Global CSS: https://go.nuxtjs.dev/config-css
  css: [
    "ant-design-vue/dist/antd.css",
    "~/assets/css/animate.css",
    "swiper/dist/css/swiper.css",
  ],

  // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  axios: {
    proxy: true,
  },
  plugins: [
    "@/plugins/antd-ui",
    "@/plugins/axios",
    "@/plugins/api",
    "@/plugins/vue-count-to",

    {
      src: "~/plugins/swiper.js",
      src: "~/plugins/vue-lazyload.js",
      ssr: false, //该文件只会在客户端被打包引入
    },
    { src: "@/plugins/aos.js", ssr: false },
  ],

  // Auto import components: https://go.nuxtjs.dev/config-components
  components: true,

  // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  buildModules: [],

  // Modules: https://go.nuxtjs.dev/config-modules
  modules: ["@nuxtjs/axios", "@nuxtjs/proxy"],
  proxy: {
    "/fyapi": {
      //target: 'http://feiypay.com/wanshang-web-admin',
      target: "http://120.27.231.243:8219/js/a",
      pathRewrite: {
        "^/fyapi": "/",
      },
    },
  },
  // Build Configuration: https://go.nuxtjs.dev/config-build
  build: {},
};
